package net.roseparadise.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;


/**
 * Category entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="tcategory"
    ,catalog="studio"
)

public class Category  implements java.io.Serializable {


    // Fields    

     private Integer categoryid;
     private String categoryname;
     private Integer categoryorder;


    // Constructors

    /** default constructor */
    public Category() {
    }

    
    /** full constructor */
    public Category(String categoryname, Integer categoryorder) {
        this.categoryname = categoryname;
        this.categoryorder = categoryorder;
    }

   
    // Property accessors
    @GenericGenerator(name="generator", strategy="increment")@Id @GeneratedValue(generator="generator")
    
    @Column(name="CATEGORYID", unique=true, nullable=false)

    public Integer getCategoryid() {
        return this.categoryid;
    }
    
    public void setCategoryid(Integer categoryid) {
        this.categoryid = categoryid;
    }
    
    @Column(name="CATEGORYNAME", nullable=false, length=30)

    public String getCategoryname() {
        return this.categoryname;
    }
    
    public void setCategoryname(String categoryname) {
        this.categoryname = categoryname;
    }
    
    @Column(name="CATEGORYORDER", nullable=false)

    public Integer getCategoryorder() {
        return this.categoryorder;
    }
    
    public void setCategoryorder(Integer categoryorder) {
        this.categoryorder = categoryorder;
    }
   








}